Information processing apparatus, method of controlling the same, and non-transitory computer-readable medium

ABSTRACT

An information processing apparatus capable of executing near field wireless communication, comprises: a display unit configured to display a screen; an obtaining unit configured to obtain identification information regarding a device from a near field wireless communication tag with use of the near field wireless communication; a selection unit configured, in a case where the obtaining unit obtained the identification information, to select one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed by the display unit; and a processing unit configured to execute the processing selected by the selection unit.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an information processing apparatus capable of executing wireless communication, a method of controlling the same, and a non-transitory computer-readable medium.

2. Description of the Related Art

Some apparatuses such as MFPs (Multi Function Peripherals) are provided with an NFC (Near Field Communication) tag. The NFC tag includes information specifying the MFP to which it is attached, such as connection information (an IP address or a MAC address).

Meanwhile, there are cases where mobile applications for printing images or documents operate on mobile terminals that can read the content of NFC tags. With such mobile terminals, there is known to be a handover technique that employs NFC tag information, in which a mobile application is started up, an image is displayed, and the mobile terminal is touched against an NFC tag (hereinafter, called an “NFC touch”) to read its information (see Japanese Patent Laid-Open No. 2013-157736). It is possible to switch the wireless communication LAN AP (Access Point) to which the mobile terminal is to be connected in accordance with the NFC tag information, and perform printing with the handover destination MFP as the print destination.

Also, a technique has been disclosed in which it is determined whether or not the state of the MFP is an error state, and a function is executed only in the case of a non-error state (see Japanese Patent Laid-Open No. 2013-214139).

If an NFC touch is performed while an image is displayed in a preview screen on a mobile terminal, printing is executed, whereas if an NFC touch is performed while a screen other than a preview screen is displayed, the image to be printed has not been determined, and therefore printing cannot be performed. On the other hand, if no operation is performed when an NFC touch is performed while a screen other than a preview screen is displayed, a user who desires to perform an operation other than printing, such as performing a scanning operation with a mobile application, needs to manually connect to a wireless communication LAN and select an MFP, which is troublesome.

SUMMARY OF THE INVENTION

According to one aspect of the present invention, there is provided an information processing apparatus capable of executing near field wireless communication, comprising: a display unit configured to display a screen; an obtaining unit configured to obtain identification information regarding a device from a near field wireless communication tag with use of the near field wireless communication; a selection unit configured, in a case where the obtaining unit obtained the identification information, to select one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed by the display unit; and a processing unit configured to execute the processing selected by the selection unit.

According to another aspect of the present invention, there is provided an information processing apparatus capable of executing near field wireless communication, comprising: a display unit configured to display a screen; an obtaining unit configured to obtain identification information regarding a device from a near field wireless communication tag with use of the near field wireless communication; a selection unit configured, in a case where the obtaining unit obtained the identification information, to select one of first processing for specifying the device indicated by the identification information as a connection destination and second processing for sending data to the device indicated by the identification information, based on a type of screen being displayed by the display unit; and a processing unit configured to execute the processing selected by the selection unit.

According to another aspect of the present invention, there is provided a method of controlling an information processing apparatus, comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.

According to another aspect of the present invention, there is provided a method of controlling an information processing apparatus, comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for specifying the device indicated by the identification information as a connection destination and second processing for sending data to the device indicated by the identification information, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.

According to another aspect of the present invention, there is provided a non-transitory computer-readable medium storing a program for causing a computer to execute a method for controlling an information processing apparatus, the method comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.

According to another aspect of the present invention, there is provided a non-transitory computer-readable medium storing a program for causing a computer to execute a method for controlling an information processing apparatus, the method comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for specifying the device indicated by the identification information as a connection destination and second processing for sending data to the device indicated by the identification information, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.

According to the present invention, processing executed based on information read from an NFC tag is switched according to the application screen, and the user can smoothly perform operations with respect to an MFP.

Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram showing an example of a configuration of a communication system.

FIG. 2 is a diagram showing an example of a hardware configuration of a mobile terminal.

FIG. 3 is a diagram showing an example of a hardware configuration of an NFC tag.

FIG. 4 is a diagram showing an example of a software configuration of the mobile terminal.

FIG. 5 is a diagram showing a flow of screens according to a first embodiment.

FIG. 6 is a flowchart showing processing in the case of a preview screen according to the first embodiment.

FIG. 7 is a flowchart showing processing in the case of a screen other than a preview screen according to the first embodiment.

FIG. 8 is a flowchart showing processing in the case of a device search screen according to a second embodiment.

FIG. 9 is a flowchart showing processing in the case of a currently communicating screen according to a third embodiment.

DESCRIPTION OF THE EMBODIMENTS

Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. It is to be understood that the following embodiments are not intended to limit the claims of the present invention, and that not all of the combinations of the aspects that are described according to the following embodiments are necessarily required with respect to the method to solve the problems according to the present invention.

First Embodiment System Configuration

The following describes an example of the configuration of a communication system according to the present invention with reference to FIG. 1. The communication system according to the present embodiment includes a mobile terminal 100, an MFP 110, an NFC tag 111, and an access point 120.

The MFP 110 executes wireless communication with an access point 120 over a wireless communication LAN or the like. Note that the communication between the access point 120 and the MFP 110 may be wired communication employing a LAN cable or the like. Also, although an MFP is described as an example of a device that performs communication with the mobile terminal 100 in the present embodiment, the present invention is not limited to this, and the device may be another apparatus such as a single-function network printer.

The mobile terminal 100 can execute wireless communication over a wireless communication LAN or the like. When a user inputs information such as the SSID of the access point 120 and a security key to the mobile terminal 100, the mobile terminal 100 connects to the access point 120, and then the mobile terminal 100 can communicate with the MFP 110 via the access point 120. The mobile terminal 100 can send a print job to an external apparatus such as the MFP 110 via the access point 120. Upon receiving the print job, the MFP 110 executes printing based on the print job.

Also, the mobile terminal 100 and the MFP 110 can execute near field wireless communication such as NFC (Near Field Communication). In the case of the present embodiment, the MFP 110 includes the NFC tag 111, and information for connecting to the access point 120 (the SSID of the access point 120 and a security key) is stored in the NFC tag 111. The mobile terminal 100 can obtain the information in the NFC tag 111 of the MFP 110 using NFC, and connect to the access point 120 based on the obtained information. Switching the connection to wireless communication in a wireless communication LAN or the like using information obtained by near field wireless communication such as NFC in this way is called a “handover”. Performing a handover eliminates the trouble of the need for information for connecting to the access point 120 (the SSID of the access point 120 and a security key) to be input to the mobile terminal 100 by the user.

Hardware Configuration

The following describes an example of the hardware configuration of the mobile terminal 100 with reference to FIG. 2. Note that although an apparatus such as a smartphone or a tablet PC is envisioned as the mobile terminal 100 in the present embodiment, the present invention is applicable to another apparatus, as long as it is an information processing apparatus that can execute wireless communication.

A CPU 201 reads out control programs stored in a ROM 202, and executes various types of processing for controlling operations of the mobile terminal 100. The ROM 202 is a nonvolatile storage unit, and stores control programs. A RAM 203 is a volatile storage unit, and is used as a main memory for the CPU 201, and as a temporary storage area such as a work area. An HDD 204 stores various types of data such as photographs and electronic documents. Also, an OS (Operating System) 411 and an MFP application 400 are also stored in the HDD 204. An RTC (Real Time Clock) 205 measures time.

In the case of the mobile terminal 100, one CPU 201 executes the various processes shown in the flowcharts described later, but another mode may be employed. For example, the processes shown in the flowcharts described later may be executed by multiple CPUs working in cooperation.

An operation panel 206 includes a touch panel function capable of detecting touch operations performed by the user, and displays various types of screens provided by the OS 411 and the MFP application 400. The user can input desired operation instructions to the mobile terminal 100 by performing touch operations on the operation panel 206. Note that a configuration is possible in which the mobile terminal 100 includes hardware keys (not shown), and the user inputs operation instructions to the mobile terminal 100 using the hardware keys.

A speaker 207 and a microphone 208 are used in audio-related applications, such as the case where the user calls another mobile terminal or a fixed-line telephone. A camera 209 performs imaging in accordance with an imaging instruction from the user. A photograph (image) captured by the camera 209 is stored in a predetermined area of the HDD 204.

A near field wireless communication unit 210 executes near field wireless communication such as NFC with the NFC tag 111 included in the MFP 110. When the user brings the mobile terminal 100 close to the NFC tag 111, near field wireless communication is established between the near field wireless communication unit 210 and the NFC tag 111 of the MFP 110, and the near field wireless communication unit 210 obtains the information in the NFC tag 111. Note that the near field wireless communication executed by the near field wireless communication unit 210 is not limited to NFC, and a communication method employing another short-range communication standard such as Bluetooth (registered trademark) may be used.

A wireless communication unit 211 executes wireless communication in a wireless communication LAN or the like. In the case of the mobile terminal 100, by using a handover, the user can realize wireless communication using the wireless communication unit 211 with a simple operation. Specifically, the wireless communication unit 211 can connect to the access point 120 using connection information (the SSID of the access point 120 and a security key) that the near field wireless communication unit 210 obtained from the NFC tag 111 of the MFP 110.

The following describes an example of the hardware configuration of the NFC tag 111 with reference to FIG. 3. An antenna 301 is connected to a controller 302. The antenna 301 receives a supply of electrical power by electromagnetic induction from the near field wireless communication unit 210 of the mobile terminal 100, and uses the received electrical power as operating power for the controller 302. Additionally, the antenna 301 operates as an antenna for wireless communication from the near field wireless communication unit 210. The controller 302 performs communication with the mobile terminal 100 via the antenna 301. Additionally, the controller 302 performs reading/writing processing with respect to a memory 303 in accordance with a reading/writing instruction received by this communication. By performing this reading/writing processing, the controller 302 can hold information regarding the MFP 110, such as the MAC address thereof, and notify this information to an external apparatus via the antenna 301 as necessary.

Software Configuration

The following describes an example of the software configuration of the mobile terminal 100 with reference to FIG. 4. FIG. 4 is a functional block diagram of software realized by the CPU 201 reading out a control program stored in the ROM 202 or the HDD 204.

The OS 411 is software for controlling overall operations of the mobile terminal 100. Various applications, including the MFP application 400, can be installed in the mobile terminal 100. The OS 411 exchanges information with these applications, and executes various types of processing in accordance with instructions received from the applications. For example, the OS 411 changes the screen displayed on the operation panel 206, and executes wireless communication using the wireless communication unit 211.

The MFP application 400 is an application installed in the mobile terminal 100. The user can perform operations and issue instructions for printing, scanning, and the like with respect to the MFP 110 from the MFP application 400. Various applications other than the MFP application 400 can be installed in the mobile terminal 100, but they will not be described here.

The following is a more detailed description of units configuring the MFP application 400. A screen control unit 401 controls the screens displayed on the operation panel 206 via the OS 411. The screens shown in FIG. 5 are displayed on the operation panel 206 by the screen control unit 401. Also, the screen control unit 401 makes a determination regarding operations and instructions input by the user via the operation panel 206. A communication unit 402 controls wireless communication performed by the wireless communication unit 211 and near field wireless communication performed by the near field wireless communication unit 210 via the OS 411. A wireless communication LAN setting change unit 403 changes wireless communication LAN settings related to wireless communication performed by the mobile terminal 100, via the OS 411. A timing unit 404 measures time using the RTC 205.

A print job generation unit 405 generates print jobs. A print job generated by the print job generation unit 405 is sent to the MFP 110 by the wireless communication unit 211, and thereafter, printing is executed on the MFP 110 side in accordance with the print job. A storage unit 406 temporarily stores various information.

A scan job control unit 407 issues a scan instruction to the MFP 110 using the wireless communication unit 211, and displays scan data received from the MFP 110 via the screen control unit 401. In the case of storing scan data, the scan job control unit 407 stores it in the storage unit 406. Stored scan data is managed by a document management unit 408.

An MFP search unit 409 sends a search command over a network via the wireless communication unit 211, and displays a list of corresponding MFPs based on received response data. An MFP selection unit 410 selects an MFP that is to perform an operation from the list of found MFPs, and stores information indicating the selected MFP in the storage unit 406. The MFP selection unit 410 also stores a list of MFPs that have been selected in the past.

Screen Transitions

Next, screen transitions and an overview of the print function realized by the MFP application 400 will be described with reference to FIG. 5. The screens shown in FIG. 5 are screens displayed on the operation panel 206 by the screen control unit 401 of the MFP application 400.

A home screen 501 is the screen that is first displayed when the MFP application 400 starts up. A DeviceBMP is arranged on the home screen 501 to display the MFP that is currently selected. Buttons corresponding to various functions are also displayed on the home screen 501. When the search button is selected, the display transitions to an MFP selection screen 502, and the MFP selected in the MFP selection screen 502 is displayed by the DeviceBMP.

When a print button is selected, the display transitions to a print type selection screen 504 for performing an operation on the MFP that is currently selected. When a scan button is selected, the display transitions to a scan setting screen (not shown), and it is possible to set scan settings, execute scanning, view a data preview, and so on. When a document button is selected, the display transitions to a document selection screen (not shown), and it is possible to manage (move, delete, preview) image data stored by the application.

A list of MFPs registered in the MFP application 400 is displayed on the MFP selection screen 502. When an MFP is selected from the list, the display transitions to the home screen 501, and the selected MFP is displayed by the DeviceBMP. When a search button is selected on the MFP selection screen 502, the display transitions to a searching screen 503.

In the searching screen 503, an MFP search is executed, and when the search is complete, a list of found MFPs is displayed. When an MFP is selected from the list of found MFPs, the display transitions to the MFP selection screen 502, and the selected MFP is added to the list of MFPs on the MFP selection screen 502.

The print type selection screen 504 displays types of printing in a selectable manner. Here, the types of printing “photograph”, “camera”, and “web” are displayed, but there is no limitation to these types. If “photograph” is selected, the display transitions to an image selection screen 505. If “camera” is selected, the display transitions to an image capturing screen (not shown), and print processing is performed on a captured image. If “web” is selected, a web browser screen (not shown) is displayed. When a URL (Uniform Resource Locator) is input in the web browser screen, the web page at the input URL is displayed, and print processing is performed on the displayed web page.

The image selection screen 505 is a screen that displays a list of photographs stored in the HDD 204 of the mobile terminal 100. As one example, the image selection screen 505 shows the case where six photographs, namely photographs PT1 to PT6, are displayed. In the image selection screen 505, the user selects a photograph that is to be printed.

When a photograph is selected in the image selection screen 505, a preview screen 506 is displayed. A preview of the selected image is displayed on the preview screen 506, and since the selected photograph is displayed at a large size, the user can check the selected photograph. When a print start button is selected in the preview screen 506, a print instruction is issued, and the display transitions to a currently printing screen 507. The currently printing screen 507 is displayed while printing is underway, and then the display returns to the image selection screen 505 when printing is complete.

If the user brings the mobile terminal 100 close to the NFC tag 111 of the MFP 110 while the preview screen 506 is being displayed, the near field wireless communication unit 210 reads the information stored in the NFC tag 111 of the MFP 110. In the case of the present embodiment, connection information for the execution of wireless communication with the MFP 110 by the wireless communication unit 211 is stored in the NFC tag 111 of the MFP 110. This connection information corresponds to the SSID of the access point 120, a security key for connecting to the access point 120, and the IP address of the MFP 110. Using the connection information obtained by the near field wireless communication unit 210 reading the NFC tag 111 of the MFP 110, the wireless communication unit 211 can perform wireless communication with the MFP 110, and printing can be executed.

If the mobile terminal 100 is brought close to the NFC tag 111 while a screen other than the preview screen 506 is being displayed, printing fails because there are also screens in which the image data to be printed has not been determined. As a result, processing ends with an error depending on the case.

In view of this, when the mobile terminal 100 is brought close to the NFC tag 111 of the MFP 110 (in other words, when the near field wireless communication unit 210 obtains connection information from the NFC tag 111), print processing is executed based on the connection information if a preview screen is being displayed. However, if a preview screen is not being displayed, only a switch to wireless communication LAN communication (handover) and MFP selection (pairing) are performed. Accordingly, printing can be performed based on connection information obtained from the NFC tag 111, only when printing is possible.

Processing Flow

The following describes processing executed by the MFP application 400 when an NFC touch is performed while a preview screen is being displayed, with reference to the flowcharts of FIGS. 6 and 7. The steps shown in the flowchart of FIG. 6 are realized by the CPU 201 of the mobile terminal 100 deploying a control program stored in a memory such as the ROM 202 to the RAM 203 and executing the control program.

In step S601, the CPU 201 uses the near field wireless communication unit 210 to determine whether or not the operator of the mobile terminal 100 has touched the NFC tag 111. If a touch has been performed (YES in step S601), the procedure moves to step S602. If a touch has not been performed (NO in step S601), the procedure waits until a touch is performed.

In step S602, the CPU 201 uses the near field wireless communication unit 210 to read the data recorded in the NFC tag 111 that was touched.

In step S603, the CPU 201 checks whether or not the format of the data read in step S602 is normal. If the read data is improper, reading fails, or the format is improper (NO in step S603), in step S604, the CPU 201 notifies the operator by displaying an error display (not shown) on the operation panel 206. Thereafter, this processing flow is ended. On the other hand, if the format is normal (YES in step S603), the procedure moves to step S605.

In step S605, the CPU 201 determines whether or not the screen of the MFP application 400 is a preview screen. In the case of a preview screen (YES in step S605), the procedure moves to step S607, and otherwise (NO in step S605) the procedure moves to step S606. In step S606, the CPU 201 performs an operation for the case of a screen other than a preview screen. The operation in the case of a screen other than a preview screen will described later with reference to FIG. 7.

In step S607, the CPU 201 uses the wireless communication unit 211 to, using a broadcast packet, make an MFP existence inquiry to the MFPs that are connected via the access point 120.

In step S608, the CPU 201 uses the wireless communication unit 211 to receive a response packet from an MFP. The CPU 201 then uses SNMP (Simple Network Management Protocol) to make an MFP MAC address inquiry to the MFP, and receives a response to the inquiry. Note that although the CPU 201 obtains the MAC address of the MFP via SNMP, there is no limitation to this. For example, a configuration is possible in which a MAC address table (ARP table) of the OS 411 is searched, and the corresponding MAC address is obtained based on the IP address indicated in the response packet.

In step S609, the CPU 201 compares the MAC address that was obtained in step S608 with the MAC address described in the NFC tag 111 that was read in step S602. In the case of a match (YES in step S609), the procedure moves to step S610. In the case of no match (NO in step S609), the procedure moves to step S612.

In step S610, the CPU 201 considers the IP address of the MFP that sent the response in step S608 to be the IP address of the MFP 110 to which the NFC tag 111 is attached. The CPU 201 then determines that IP address to be the print destination.

In step S611, the CPU 201 performs print processing with respect to the IP address that was determined in step S610. Specifically, the CPU 201 considers, as the print target, a file determined based on a file selection operation (not shown) performed by the operator, and makes a print processing request to the MFP 110 that corresponds to the IP address that was determined in step S610.

In step S612, the CPU 201 calculates an elapsed duration from step S607 using the timing unit 404, and determines whether or not the elapsed duration is greater than or equal to a predetermined value (e.g., greater than or equal to 10 seconds). If the elapsed duration exceeds the predetermined value (YES in step S612), it is considered that a timeout occurred, and the procedure moves to step S613. If the elapsed duration does not exceed the predetermined value (NO in step S612), the procedure returns to step S608.

In step S613, the CPU 201 notifies the operator by displaying an error display (not shown) on the operation panel 206 to indicate that the MFP written in the NFC tag 111 could not be found. Thereafter, this processing flow is ended.

The following describes processing in the case where the screen of the MFP application 400 is not a preview, with reference to the flowchart of FIG. 7. This processing flow corresponds to step S606 in FIG. 6.

In step S701, the CPU 201 stores the MAC address that was read in step S602 in the HDD 204. Also, the CPU 201 sets the value of a handover/pairing flag to “ON”, and stores the flag in the HDD 204. In the present embodiment, the handover/pairing flag indicates a setting of whether or not communication with a connection destination apparatus (target) is to be established. If the value of this flag is “ON”, a connection is made with the detected connection destination. In step S702, in order to reset the processing at this point, the CPU 201 restarts the MFP application 400 and transitions the screen of the MFP application 400 to the home screen 501. Note that as long as it is possible to reset the processing, the screen may be transitioned to the home screen 501 without restarting the MFP application 400.

In step S703, the CPU 201 determines whether or not the value of the handover/pairing flag stored in the HDD 204 is “ON”. If the value of the handover/pairing flag is “OFF” (NO in step S703), the CPU 201 determines that normal processing of the home screen 501 is to be performed. Note that there are no particular limitations on the details of this, and therefore a detailed description will not be given. Thereafter, this processing flow is ended. If the value of the handover/pairing flag is “ON” (YES in step S703), the procedure moves to step S704.

In step S704, the CPU 201 reads the MAC address that was stored in step S701. In step S705, the CPU 201 uses the wireless communication unit 211 to, using a broadcast packet, make an MFP existence inquiry to the MFPs that are connected via the access point 120.

In step S706, the CPU 201 uses the wireless communication unit 211 to receive a response packet from an MFP. The CPU 201 then uses SNMP to make an MFP MAC address inquiry to that MFP, and receives a response to the inquiry. Note that although the CPU 201 obtains the MAC address of the MFP via SNMP, there is no limitation to this, and the corresponding MAC address may be obtained by searching a MAC address table (ARP table) of the OS 411, for example.

In step S707, the CPU 201 compares the MAC address that was obtained in step S706 with the MAC address described in the NFC tag 111 that was read in step S704. In the case of a match (YES in step S707), the procedure moves to step S708. In the case of no match (NO in step S707), the procedure moves to step S709.

In step S708, the CPU 201 considers the IP address of the MFP that sent the response in step S706 to be the IP address of the MFP 110 to which the NFC tag 111 is attached. The CPU 201 then determines that IP address to be the connection destination.

In step S709, the CPU 201 calculates an elapsed duration from step S705 using the timing unit 404, and determines whether or not the elapsed duration is greater than or equal to a predetermined value (e.g., greater than or equal to 10 seconds). If the elapsed duration exceeds the predetermined value (YES in step S709), it is considered that a timeout occurred, and the procedure moves to step S710. If the elapsed duration does not exceed the predetermined value (NO in step S709), the procedure returns to step S706.

In step S710, the CPU 201 notifies the operator by displaying an error display (not shown) on the operation panel 206 to indicate that the MFP written in the NFC tag 111 could not be found. Thereafter, this processing flow is ended.

Effects

As described above, when the mobile terminal is brought close to the NFC tag of an MFP, printing is executed if the MFP application is displaying an image preview screen, and only handover and pairing are executed if another screen is being displayed.

Accordingly, when a preview is being displayed, the user can easily perform printing, and when a screen other than a preview screen is being displayed, the user can select an MFP by touching the mobile terminal against an NFC without particularly giving consideration to which screen is being displayed, and then smoothly perform operations with respect to the MFP.

Second Embodiment

Whereas the first embodiment describes an example in which the predetermined screen is a preview screen of the MFP application, a second embodiment describes processing performed when another screen is being displayed. Specifically, a configuration is possible in which if an NFC touch is performed while an MFP search screen is being displayed, the search is ended, and the MFP on which the NFC touch was performed is selected. Examples of MFP search screens include the MFP selection screen 502 and the searching screen 503 shown in FIG. 5.

Processing Flow

The following describes processing executed by the MFP application 400 when an NFC touch is performed while an MFP search screen is being displayed, with reference to the flowchart of FIG. 8. The steps shown in the flowchart of FIG. 8 are realized by the CPU 201 of the mobile terminal 100 deploying a control program stored in a memory such as the ROM 202 to the RAM 203 and executing the control program.

In step S801, the CPU 201 uses the near field wireless communication unit 210 to determine whether or not the operator of the mobile terminal 100 has touched the NFC tag 111. If a touch has been performed (YES in step S801), the procedure moves to step S802. If a touch has not been performed (NO in step S801), the procedure waits until a touch is performed.

In step S802, the CPU 201 uses the near field wireless communication unit 210 to read the data recorded in the NFC tag 111 that was touched.

In step S803, the CPU 201 checks whether or not the format of the data read in step S802 is normal. If the read data is improper, reading fails, or the format is improper (NO in step S803), in step S804, the CPU 201 notifies the operator by displaying an error display (not shown) on the operation panel 206. Thereafter, this processing flow is ended. On the other hand, if the format is normal (YES in step S803), the CPU 201 moves to step S805.

In step S805, the CPU 201 determines whether or not the screen of the MFP application 400 is an MFP search screen. In the case of an MFP search screen (YES in step S805), the procedure moves to step S807, and otherwise (NO in step S805) the procedure moves to step S806. In step S806, the CPU 201 performs an operation for the case of a screen other than an MFP search screen. Thereafter, this processing flow is ended.

In step S807, the CPU 201 determines whether or not the screen of the MFP application 400 is the searching screen 503. In the case of the MFP searching screen (YES in step S807), the procedure moves to step S808, and in the case of the MFP list screen (NO in step S807), the procedure moves to step S809.

In step S808, the CPU 201 interrupts the search processing. In step S809, the CPU 201 uses the wireless communication unit 211 to, using a broadcast packet, make an MFP existence inquiry to the MFPs that are connected via the access point 120.

In step S810, the CPU 201 uses the wireless communication unit 211 to receive a response packet from an MFP. The CPU 201 then uses SNMP to make an MFP MAC address inquiry to that MFP, and receives a response to the inquiry. Note that although the CPU 201 obtains the MAC address of the MFP via SNMP, there is no limitation to this, and the corresponding MAC address may be obtained by searching a MAC address table (ARP table) of the OS 411, for example.

In step S811, the CPU 201 compares the MAC address that was obtained in step S810 with the MAC address described in the NFC tag 111 that was read in step S802. In the case of a match (YES in step S811), the procedure moves to step S812. In the case of no match (NO in step S811), the procedure moves to step S814.

In step S812, the CPU 201 considers the IP address of the MFP that sent the response in step S810 to be the IP address of the MFP 110 to which the NFC tag 111 is attached. The CPU 201 then determines that IP address to be the connection destination.

In step S813, the CPU 201 returns the screen of the MFP application 400 to the MFP selection screen 502. Thereafter, this processing flow is ended.

In step S814, the CPU 201 calculates an elapsed duration from step S809 using the timing unit 404, and determines whether or not the elapsed duration is greater than or equal to a predetermined value (e.g., greater than or equal to 10 seconds). If the elapsed duration exceeds the predetermined value (YES in step S814), it is considered that a timeout occurred, and the procedure moves to step S815. If the elapsed duration does not exceed the predetermined value (NO in step S814), the procedure returns to step S810.

In step S815, the CPU 201 notifies the operator by displaying an error display (not shown) on the operation panel 206 to indicate that the MFP written in the NFC tag 111 could not be found. Thereafter, this processing flow is ended.

Effects

As described above, when the mobile terminal is brought close to the NFC tag of an MFP, if the MFP application is displaying an MFP search screen, that MFP can be immediately selected without waiting for the completion of search processing. Accordingly, the user can shorten the search time, and can select a desired MFP without getting lost in an MFP list.

Third Embodiment

This embodiment describes the case where an NFC touch is performed while the screen of the MFP application being displayed is a screen in which communication is being performed with an MFP during scanning, printing, or the like. When an NFC touch is performed in this state, the job will be interrupted if pairing is performed, and therefore pairing does not need to be performed during communication.

Processing Flow

The following describes processing executed by the MFP application 400 when an NFC touch is performed in the case where a sending print job screen is being displayed, with reference to the flowchart of FIG. 9. The steps shown in the flowchart of FIG. 9 are realized by the CPU 201 of the mobile terminal 100 deploying a control program stored in a memory such as the ROM 202 to the RAM 203 and executing the control program.

In step S901, the CPU 201 uses the near field wireless communication unit 210 to determine whether or not the operator of the mobile terminal 100 has touched the NFC tag 111. If a touch has been performed (YES in step S901), the procedure moves to step S902. If a touch has not been performed (NO in step S901), the procedure waits until a touch is performed.

In step S902, the CPU 201 uses the near field wireless communication unit 210 to read the data recorded in the NFC tag 111 that was touched.

In step S903, the CPU 201 checks whether or not the format of the data read in step S902 is normal. If the read data is improper, reading fails, or the format is improper (NO in step S903), in step S904, the CPU 201 notifies the operator by displaying an error display (not shown) on the operation panel 206. Thereafter, this processing flow is ended. On the other hand, if the format is normal (YES in step S903), the procedure moves to step S905.

In step S905, the CPU 201 determines whether or not the screen of the MFP application 400 is a currently communicating screen. In the case of a currently communicating screen (YES in step S905), the procedure moves to step S907. In the case of another screen (NO in step S905), the procedure moves to step S906. In step S906, the CPU 201 performs an operation for the case of a screen other than a currently communicating screen. Thereafter, this processing flow is ended.

In step S907, the CPU 201 displays a message indicating that pairing could not be performed (not shown). Thereafter, this processing flow is ended.

Effects

As described above, when the mobile terminal is brought close to the NFC tag of an MFP, if the MFP application is displaying a currently communicating screen, no NFC processing is executed. Accordingly, the user can prevent an unintended interruption in a job currently being sent.

Other Embodiments

Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.

While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

This application claims the benefit of Japanese Patent Application No. 2014-146299, filed Jul. 16, 2014, which is hereby incorporated by reference herein in its entirety. 

What is claimed is:
 1. An information processing apparatus capable of executing near field wireless communication, comprising: a display unit configured to display a screen; an obtaining unit configured to obtain identification information regarding a device from a near field wireless communication tag with use of the near field wireless communication; a selection unit configured, in a case where the obtaining unit obtained the identification information, to select one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed by the display unit; and a processing unit configured to execute the processing selected by the selection unit.
 2. The information processing apparatus according to claim 1, wherein the selection unit selects the second processing in a case where the screen being displayed by the display unit is a preview screen, and the selection unit selects the first processing in a case where the screen being displayed by the display unit is not the preview screen.
 3. The information processing apparatus according to claim 2, wherein the second processing is processing for connecting to the device indicated by the identification information and sending a print job for printing an image being previewed to the device.
 4. The information processing apparatus according to claim 1, wherein the near field wireless communication is NFC.
 5. An information processing apparatus capable of executing near field wireless communication, comprising: a display unit configured to display a screen; an obtaining unit configured to obtain identification information regarding a device from a near field wireless communication tag with use of the near field wireless communication; a selection unit configured, in a case where the obtaining unit obtained the identification information, to select one of first processing for specifying the device indicated by the identification information as a connection destination and second processing for sending data to the device indicated by the identification information, based on a type of screen being displayed by the display unit; and a processing unit configured to execute the processing selected by the selection unit.
 6. The information processing apparatus according to claim 5, wherein the selection unit selects the second processing in a case where the screen being displayed by the display unit is a preview screen, and the selection unit selects the first processing in a case where the screen being displayed by the display unit is not the preview screen.
 7. The information processing apparatus according to claim 6, wherein the second processing is processing for sending a print job for printing an image being previewed to the device.
 8. The information processing apparatus according to claim 5, wherein the near field wireless communication is NFC.
 9. A method of controlling an information processing apparatus, comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.
 10. The method of controlling an information processing apparatus according to claim 9, wherein the second processing is selected in the selection step in a case where the screen being displayed is a preview screen, and the first processing is selected in the selection step in a case where the screen being displayed is not the preview screen.
 11. The method of controlling an information processing apparatus according to claim 10, wherein the second processing is processing for connecting to the device indicated by the identification information and sending a print job for printing an image being previewed to the device.
 12. The method of controlling an information processing apparatus according to claim 9, wherein in the obtaining step, the identification information regarding the device is obtained from a near field wireless communication tag with use of near field wireless communication.
 13. The method of controlling an information processing apparatus according to claim 12, wherein the near field wireless communication is NFC.
 14. A method of controlling an information processing apparatus, comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for specifying the device indicated by the identification information as a connection destination and second processing for sending data to the device indicated by the identification information, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.
 15. The method of controlling an information processing apparatus according to claim 14, wherein the second processing is selected in the selection step in a case where the screen being displayed is a preview screen, and the first processing is selected in the selection step in a case where the screen being displayed is not the preview screen.
 16. The method of controlling an information processing apparatus according to claim 15, wherein the second processing is processing for sending a print job for printing an image being previewed to the device.
 17. The method of controlling an information processing apparatus according to claim 14, wherein in the obtaining step, the identification information regarding the device is obtained from a near field wireless communication tag with use of near field wireless communication.
 18. The method of controlling an information processing apparatus according to claim 17, wherein the near field wireless communication is NFC.
 19. A non-transitory computer-readable medium storing a program for causing a computer to execute the method for controlling an information processing apparatus, the method comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for connecting to the device indicated by the identification information and second processing for connecting to the device indicated by the identification information and sending data to the device, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step.
 20. A non-transitory computer-readable medium storing a program for causing a computer to execute the method for controlling an information processing apparatus, the method comprising: a display step of displaying a screen; an obtaining step of obtaining identification information regarding a device; a selection step of selecting, in a case where the identification information was obtained in the obtaining step, one of first processing for specifying the device indicated by the identification information as a connection destination and second processing for sending data to the device indicated by the identification information, based on a type of screen being displayed; and a control step of controlling the information processing apparatus so as to execute the processing selected in the selection step. 